Introduction to the Doppler effect